package cn.hznc.exception;

public enum UserEx{

    USERNAME_NOT_EXIST("1000","用户名不存在"),

    PASSWORD_ERROR("1001","密码输入错误"),

    USERNAME_EXIST( "1002","用户名已存在") ;

    /**
     * 错误编码
     */
    private String code;

    /**
     * 注释信息
     */
    private String msg;


    UserEx(String code,String msg) {
        this.code=code;
        this.msg=msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
